import apibase from "@/api/apiBase";
import axios from "axios";
import { resetPwdInterface, sendResetSmsInterface } from "./forget.interface";

//发送短信验证码
export const $sendResetSms = (params: sendResetSmsInterface) => {
  const $server = new apibase();
  const instance = axios.create();
  return $server.post({
    url: '/travel/api/sendResetSms',
    data: params,
    instance,
  });
}

//重置密码
export const $resetPwd = (params: resetPwdInterface) => {
  const $server = new apibase();
  const instance = axios.create();
  return $server.post({
    url: '/travel/api/resetPwd',
    data: params,
    instance,
  });
}